﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Administration.Master" Inherits="System.Web.Mvc.ViewPage<NMA.Web.Areas.Admin.Models.PollIndexModel>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript">
    $(document).ready(function () {
        //Text Dialog
        $("#deletebatchdialog").dialog({
            bgiframe: true,
            autoOpen: false,
            resizable: true,
            width: 600,
            modal: true,
            overlay: {
                backgroundColor: '#000',
                opacity: 0.5
            },
            buttons: {
                Cancel: function () {
                    $(this).dialog('close');
                },

                'Confirm': function () {
                    $(this).dialog('close');
                }
            }
        });

        //Delete Batch action
        $('#delete').click(function () {
            $('#deletebatchdialog').dialog('open');
        })

    });

    $(function () {
        $("#createddate").datepicker({
            showOn: 'button',
            buttonImage: '<%= Html.ImageUrl("icon-calendar.png") %>',
            buttonImageOnly: true
        });
    });
	</script>

</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <div id="maincontent">
		<!-- BREADCRUMB -->
			<div id="breadcrumb">
				  <!-- #BeginEditable "breadcrumb" --><!-- #EndEditable -->
			</div>
		<!-- CONTENTS -->
		<div id="contents">			
			<div class="boxcontent">
				<div class="box-top"></div>									
					<div class="box-middle">
					<!-- #BeginEditable "contents" -->
						<div id="pagetitle" class="pagetitle">
							<h1 id="formsearch">Search For a Poll</h1>
							<span class="breadcrumb"><a href="category.htm">Search poll</a> > <span class="current">Search for a poll</span></span>
						</div>						
						<div id="pagecontent" class="pagecontent">
						<!-- Hide Error Message 

							<div class="messages">
								<div class="error">General Error Message Here</div>
								<div class="success">General Success Message Here</div>
							</div>
							-->
						<!-- Search Form-->
						<div class="group-header"><span>Search Criteria</span></div>
						<div class="group-body clear">
							<form method="post" action="" id="page-search" class="simpleform search">																		  							  		
					
								<div class="formgroup fstcol">
									<dl>
										<dt><label for="name">Name</label></dt>
										<dd>
										<input name="name"  id="name"  value="" type="text" class="inputtext"/></dd>
									</dl>
									<dl>
										<dt><label for="value">Value</label></dt>
										<dd>
										<input name="value"  id="value"  value="" type="text" class="inputtext"/></dd>
									</dl>
									<dl>
										<dt><label for="votedate">Vote date</label></dt>
										<dd>
											<input name="votedate"  id="votedate"  value="" type="text" class="inputtext"/>
											<!-- <a href="#" class="inlinetext"><img alt="Date Picker" height="24" src="../images/icon-calendar.png" width="24" /></a> -->
										</dd>
									</dl>
									<dl>
										<dt>&nbsp;</dt>
										<dd><div class="pributton left "><input name="Button1" type="button" value="Search" class="rightbutton"  /></div></dd>
									</dl>
								</div>
								<div class="formgroup seccol">
									<dl>
										<dt><label for="createduser">Created user</label></dt>
										<dd>
										<input name="createduser"  id="createduser"  value="" type="text" class="inputtext"/></dd>
									</dl>
									<dl>
										<dt><label for="createddate">Created date</label></dt>
										<dd>
											<input name="createddate"  id="createddate"  value="" type="text" class="inputtext"/>
											<!-- <a href="#" class="inlinetext"><img alt="Date Picker" height="24" src="../images/icon-calendar.png" width="24" /></a> -->
										</dd>
									</dl>
								</div>
							
						</form>
						</div>

						<div class="separate">&nbsp;</div>
						<!-- Search Result -->
							<div class="messages">
								<!--<div class="error">No form that meets the criteria is found. Please try another search with different criteria</div>-->
								<div class="success">200 Records Found</div>
							</div>
						<h2 class="floatleft">Item List</h2>
						<a href="#" class="toolbarfloatright"><img alt="Update" height="16" src='<%= Html.ImageUrl("icon-update.png") %>' width="16" /></a>
						<a href="#" id="delete" class="toolbarfloatright"><img alt="Delete" height="16" src='<%= Html.ImageUrl("delete.png") %>' width="16" /></a>
						<a href="#" class="toolbarfloatright"><img alt="Add" height="16" src='<%= Html.ImageUrl("icon-add.gif") %>' width="16" /></a>
						<div class="group-body clear">						
							<table border="0" cellpadding="0" cellspacing="0" width="100%" class="grid" id="searchresult">
								<caption>Form Search - Search Result</caption>
								<thead>
									<tr>
										<th class="firstcol">&nbsp;</th>
										<th>Name</th>
										<th>Value</th>
										<th>Vote Date</th>
										<th>Voted person</th>
										<th>Created Date</th>
										<th class="lastcol">Created User</th>
									</tr>
								</thead>
								<tbody>
									  <tr class="odd">
										<td>
											<input name="radio1" type="radio" class="floatleft" />
										</td>
										<td><a href="#">Poll 1</a></td>
										<td>2</td>	
										<td>01/01/2010</td>
										<td>Tom</td>
										<td>12/08/1975</td>
										<td>tom@gmail.com</td>										
									  </tr>
									  <tr class="even">
										<td>
											<input name="radio1" type="radio" class="floatleft" />
										</td>
										<td><a href="#">Poll 2</a></td>
										<td>2</td>	
										<td>01/01/2010</td>
										<td>Jerry</td>
										<td>12/08/1978</td>
										<td>jerry@gmail.com</td>										
									  </tr>									   
								</tbody>
							</table>
						<!-- Pagination -->
						<div class="separate">&nbsp;</div>
						<div class="totalitem clear">1-10 of 200 records</div>				
						<div class="movementbar">						
	                                     <ul class="pagination">
								<li class="previous"><a href="#">Previous</a></li>
								<li><a href="#">1</a></li>
								<li><a href="#">2</a></li>
								<li class="active">3</li>
								<li><a href="#">4</a></li>
								<li><a href="#">5</a></li>
								<li><a href="#">6</a></li>
								<li><a href="#">7</a></li>
								<li class="next"><a href="#">Next</a></li>
							</ul>
						</div>
					</div>
					</div>
					</div>					
				<div class="box-bottom"></div>			
			</div>
		</div>
	</div>
	
	<!-- Dialogs -->						
	<!-- Delete Batch Confirm Dialog -->
		 <div id="deletebatchdialog" class="dialog" title="Confirm Delete">
			<div class="dialogmessage">Are you sure you want to delete?</div>
		</div>
	<!-- End Dialog -->

</asp:Content>
